<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>insert title here</title>
</head>
<body>
	<form action="<%=request.getContextPath()%>/user/updateUser.do"
		method="get" name="form">
		<table class="tableblock" width="770" align="center">
			<tbody>
				<tr>
					<td class="tableheader" colspan="6"><b>&nbsp;基本信息</b></td>
				</tr>
				<tr>
					<td width="100">用户名：</td>
					<td width="180" colspan="4"><input type="text" name="userName"
						size="10" maxlength="20" onblur="check_user(this.value)"
						value="${user['userName']}">&nbsp;<span id="user_id_msg"></span></td>
					<!-- 					<td  align="center" rowspan="6" colspan="2"> -->
					<%-- 						<center>暂无照片</center> --%>
					<!-- 					</td> -->
				</tr>
				<tr>
					<td width="100">部门：</td>
					<td width="180"><input type="text" name="deptName"
						id="deptName" value="${user['deptName']}" readonly=""></td>
					<td>角色：</td>
					<td colspan="2" width="80%"><select name="roleId" id="roleId">
							<option value="5"
								<c:choose> <c:when test="${user['roleId'] == 5}">selected="selected" </c:when></c:choose>>职员</option>
							<option value="3"
								<c:choose><c:when test="${user['roleId'] == 3}">selected="selected" </c:when></c:choose>>财务主管</option>
							<option value="1"
								<c:choose><c:when test="${user['roleId'] == 1}">selected="selected" </c:when></c:choose>>oa
								管理员</option>
							<option value="4"
								<c:choose><c:when test="${user['roleId'] == 4}">selected="selected" </c:when></c:choose>>部门经理</option>
							<option value="2"
								<c:choose><c:when test="${user['roleId'] == 2}">selected="selected" </c:when></c:choose>>总经理</option>
					</select></td>
				</tr>
				<tr>
					<td width="100">编号：</td>
					<td width="180"><input type="text" name="staffNo" id="staffNo"
						value="${user['staffNo']}" onblur="check_no(this.value)"></td>
					<td>工号：</td>
					<td colspan="2"><input type="text" name="workNo" id="workNo"
						value="${user['workNo']}"></td>
				</tr>

				<tr>
					<td width="100">身份证号：</td>
					<td width="180"><input type="text" name="idCard" id="idCard"
						onblur="checkidcard()" value="${user['idCard']}"></td>
					<td width="100">籍贯：</td>
					<td width="180"><input type="text" id="nativePlace"
						name="nativePlace" value="${user['nativePlace']}"
						style="height: 24px;"></td>
				</tr>
				<tr>
					<td>民族：</td>
					<td><input type="text" name="nation" id="nation"
						value="${user['nation']}"></td>

					<td>婚姻状况：</td>
					<td colspan="3"><select name="maritalStatus"
						id="maritalStatus">

							<option value="0"
								<c:choose> <c:when test="${user['maritalStatus'] == 0}">selected="selected" </c:when></c:choose>>未婚</option>
							<option value="1"
								<c:choose> <c:when test="${user['maritalStatus'] == 1}">selected="selected" </c:when></c:choose>>已婚</option>
							<option value="2"
								<c:choose> <c:when test="${user['maritalStatus'] == 2}">selected="selected" </c:when></c:choose>>离异</option>
							<option value="3"
								<c:choose> <c:when test="${user['maritalStatus'] == 3}">selected="selected" </c:when></c:choose>>丧偶</option>
					</select></td>
				</tr>
				<tr>
					<td>户口类别：</td>
					<td><select name="accountType" id="accountType">
							<option value="" selected=""></option>
							<option value="01"
								<c:choose> <c:when test="${user['accountType'] == 01}">selected="selected" </c:when></c:choose>>本市城镇职工</option>
							<option value="02"
								<c:choose> <c:when test="${user['accountType'] == 02}">selected="selected" </c:when></c:choose>>外埠城镇职工</option>
							<option value="03"
								<c:choose> <c:when test="${user['accountType'] == 03}">selected="selected" </c:when></c:choose>>本市农民工</option>
							<option value="04"
								<c:choose> <c:when test="${user['accountType'] == 04}">selected="selected" </c:when></c:choose>>外地农民工</option>
							<option value="05"
								<c:choose> <c:when test="${user['accountType'] == 05}">selected="selected" </c:when></c:choose>>本市农村劳动力</option>
							<option value="06"
								<c:choose> <c:when test="${user['accountType'] == 06}">selected="selected" </c:when></c:choose>>外埠农村劳动力</option>
					</select></td>
					<td width="100">户口所在地：</td>
					<td width="180" colspan="3"><input type="text"
						name="accountLocation" id="accountLocation"
						value="${user['accountLocation']}" size="40"></td>
				</tr>
				<!-- 				<tr> -->

				<!-- 					<td   width="100">照片上传：</td> -->
				<!-- 					<td  width="180" colspan="5"><input -->
				<!-- 						type="file" name="attachment" size="40"  -->
				<!-- 						title="选择附件文件"></td> -->
				<!-- 				</tr> -->
				<tr>
					<td class="tableheader" colspan="6"><b>&nbsp;职位情况及联系方式：</b></td>
				</tr>
				<tr>
					<td width="100">工种：</td>
					<td width="180"><input type="text" name="typeOfWork"
						id="typeOfWork" value="${user['typeOfWork']}"></td>
					<td width="100">行政级别：</td>
					<td width="180"><input type="text" name="administrativeLevel"
						id="administrativeLevel" value="${user['administrativeLevel']}"></td>
					<td width="100">员工类型：</td>
					<td><select name="employeeType" id="employeeType">
							<option value="01"
								<c:choose> <c:when test="${user['employeeType'] == 01}">selected="selected" </c:when></c:choose>>合同工</option>
							<option value="02"
								<c:choose> <c:when test="${user['employeeType'] == 02}">selected="selected" </c:when></c:choose>>正式员工</option>
							<option value="03"
								<c:choose> <c:when test="${user['employeeType'] == 03}">selected="selected" </c:when></c:choose>>临时工</option>
					</select></td>
				</tr>
				<tr>
					<td width="100">职务：</td>
					<td width="180"><input type="text" name="position"
						id="position" value="${user['position']}"></td>
					<td width="100">职称：</td>
					<td width="180"><select name="theTitle" id="theTitle">
							<option value="08"
								<c:choose> <c:when test="${user['theTitle'] == 08}">selected="selected" </c:when></c:choose>>高级职称</option>
							<option value="02"
								<c:choose> <c:when test="${user['theTitle'] == 02}">selected="selected" </c:when></c:choose>>助理工程师</option>
							<option value="01"
								<c:choose> <c:when test="${user['theTitle'] == 01}">selected="selected" </c:when></c:choose>>工程师</option>
							<option value="03"
								<c:choose> <c:when test="${user['theTitle'] == 03}">selected="selected" </c:when></c:choose>>高级工程师</option>
							<option value="04"
								<c:choose> <c:when test="${user['theTitle'] == 05}">selected="selected" </c:when></c:choose>>研高工</option>
							<option value="07"
								<c:choose> <c:when test="${user['theTitle'] == 07}">selected="selected" </c:when></c:choose>>职称</option>
					</select></td>
					<td width="100">入职时间：</td>
					<td width="180"><input type="text" name="inTheTime"
						onclick="J.calendar.get();" size="10" maxlength="10"
						value="${user['inTheTime']}" /></td>
				</tr>
				<tr>
					<td width="100">职称级别：</td>
					<td width="180"><select name="titleLevel" id="titleLevel">
							<option value="1"
								<c:choose> <c:when test="${user['titleLevel'] == 1}">selected="selected" </c:when></c:choose>>初级</option>
							<option value="2"
								<c:choose> <c:when test="${user['titleLevel'] == 2}">selected="selected" </c:when></c:choose>>中级</option>
							<option value="3"
								<c:choose> <c:when test="${user['titleLevel'] == 3}">selected="selected" </c:when></c:choose>>副高</option>
							<option value="4"
								<c:choose> <c:when test="${user['titleLevel'] == 4}">selected="selected" </c:when></c:choose>>正高</option>
					</select></td>
					<td width="100">岗位：</td>
					<td width="180"><select name="jobs" id="jobs">
							<option value="1"
								<c:choose> <c:when test="${user['jobs'] == 1}">selected="selected" </c:when></c:choose>>技术研发</option>
							<option value="2"
								<c:choose> <c:when test="${user['jobs'] == 2}">selected="selected" </c:when></c:choose>>技术支持</option>
							<option value="3"
								<c:choose> <c:when test="${user['jobs'] == 3}">selected="selected" </c:when></c:choose>>销售</option>
					</select></td>
					<td width="100">在职状态：</td>
					<td width="180"><select name="workingState" id="workingState">
							<option value="1"
								<c:choose> <c:when test="${user['workingState'] == 1}">selected="selected" </c:when></c:choose>>在职</option>
							<option value="2"
								<c:choose> <c:when test="${user['workingState'] == 2}">selected="selected" </c:when></c:choose>>辞职</option>
							<option value="3"
								<c:choose> <c:when test="${user['workingState'] == 3}">selected="selected" </c:when></c:choose>>离休</option>
							<option value="4"
								<c:choose> <c:when test="${user['workingState'] == 4}">selected="selected" </c:when></c:choose>>退休</option>
							<option value="5"
								<c:choose> <c:when test="${user['workingState'] == 5}">selected="selected" </c:when></c:choose>>借调</option>
					</select></td>
				</tr>
				<tr>
					<td width="100">参加工作时间：</td>
					<td width="180"><input type="text" name="inWorkTime"
						onclick="J.calendar.get();" size="10" maxlength="10"
						value="${user['inWorkTime']}" /></td>
					<td width="100">联系电话：</td>
					<td width="180"><input type="text" name="telNo" id="telNo"
						value="${user['telNo']}"></td>
				</tr>
				<tr>
					<td width="100">电子邮件：</td>
					<td width="180"><input type="text" name="emailNo" id="emailNo"
						value="${user['emailNo']}"></td>
					<td width="100">qq：</td>
					<td width="180"><input type="text" name="staffQQ" id="staffQQ"
						value="${user['staffQQ']}"></td>
				</tr>
				<tr>
					<td width="100">家庭地址：</td>
					<td width="180" colspan="3"><input type="text" name="address"
						size="50" id="address" value="${user['address']}"></td>

				</tr>
				<tr>
					<td class="tableheader" colspan="6"><b>&nbsp;教育背景：</b></td>
				</tr>
				<tr>
					<td width="100">学历：</td>
					<td width="180"><select name="staffHtghestSchool"
						id="staffHtghestSchool">
							<option value="1"
								<c:choose> <c:when test="${user['staffHtghestSchool'] == 1}">selected="selected" </c:when></c:choose>>小学</option>
							<option value="2"
								<c:choose> <c:when test="${user['staffHtghestSchool'] == 2}">selected="selected" </c:when></c:choose>>初中</option>
							<option value="3"
								<c:choose> <c:when test="${user['staffHtghestSchool'] == 3}">selected="selected" </c:when></c:choose>>高中</option>
							<option value="4"
								<c:choose> <c:when test="${user['staffHtghestSchool'] == 4}">selected="selected" </c:when></c:choose>>中专</option>
							<option value="5"
								<c:choose> <c:when test="${user['staffHtghestSchool'] == 5}">selected="selected" </c:when></c:choose>>大专</option>
							<option value="6"
								<c:choose> <c:when test="${user['staffHtghestSchool'] == 6}">selected="selected" </c:when></c:choose>>本科</option>
							<option value="7"
								<c:choose> <c:when test="${user['staffHtghestSchool'] == 7}">selected="selected" </c:when></c:choose>>研究生</option>
							<option value="8"
								<c:choose> <c:when test="${user['staffHtghestSchool'] == 8}">selected="selected" </c:when></c:choose>>博士</option>
							<option value="9"
								<c:choose> <c:when test="${user['staffHtghestSchool'] == 9}">selected="selected" </c:when></c:choose>>博士后</option>
							<option value="10"
								<c:choose> <c:when test="${user['staffHtghestSchool'] == 10}">selected="selected" </c:when></c:choose>>技校</option>
					</select></td>
					<td width="100">学位：</td>
					<td width="180"><select name="staffHighestDegree"
						id="staffHighestDegree">
							<option value="1"
								<c:choose> <c:when test="${user['staffHighestDegree'] == 1}">selected="selected" </c:when></c:choose>>博士后</option>
							<option value="2"
								<c:choose> <c:when test="${user['staffHighestDegree'] == 2}">selected="selected" </c:when></c:choose>>博士</option>
							<option value="4"
								<c:choose> <c:when test="${user['staffHighestDegree'] == 4}">selected="selected" </c:when></c:choose>>硕士</option>
							<option value="5"
								<c:choose> <c:when test="${user['staffHighestDegree'] == 5}">selected="selected" </c:when></c:choose>>双学士</option>
							<option value="6"
								<c:choose> <c:when test="${user['staffHighestDegree'] == 6}">selected="selected" </c:when></c:choose>>学士</option>
							<option value="7"
								<c:choose> <c:when test="${user['staffHighestDegree'] == 7}">selected="selected" </c:when></c:choose>>无</option>
					</select></td>
					<td width="100">毕业时间：</td>
					<td width="180">
					<input type="text" name="graduationDate"
						onclick="J.calendar.get();" size="10" maxlength="10"
						value="${user['graduationDate']}" />
					</td>
				</tr>
				<tr>
					<td width="100">毕业学校：</td>
					<td width="180"><input type="text" name="graduationSchool"
						id="graduationSchool" value="${user['graduationSchool']}"></td>
					<td width="100">专业：</td>
					<td width="180"><input type="text" name="staffMajor"
						id="staffMajor" value="${user['staffMajor']}"></td>
					<td width="100">计算机水平：</td>
					<td width="180"><input type="text" name=computerMajor
						id="computerMajor" value="${user['computerMajor']}"></td>
				</tr>
				<tr>
					<td width="100">外语语种1：</td>
					<td width="180"><input type="text" name="foreignLanguage1"
						id="foreignLanguage1"  value="${user['foreignLanguage1']}"></td>
					<td width="100">外语语种2：</td>
					<td width="180"><input type="text" name="foreignLanguage2"
						id="foreignLanguage2"  value="${user['foreignLanguage2']}"></td>
					<td width="100">外语语种3：</td>
					<td width="180"><input type="text" name="foreignLanguage3"
						id="foreignLanguage3"  value="${user['foreignLanguage3']}"></td>
				</tr>
				<tr>
					<td width="100">外语水平1：</td>
					<td width="180"><input type="text" name="foreignLevel1"
						id="foreignLevel1" value="${user['foreignLevel1']}"></td>
					<td width="100">外语水平2：</td>
					<td width="180"><input type="text" name="foreignLevel2"
						id="foreignLevel2" value="${user['foreignLevel2']}"></td>
					<td width="100">外语水平3：</td>
					<td width="180"><input type="text" name="foreignLevel3"
						id="foreignLevel3" value="${user['foreignLevel3']}"></td>
				</tr>
				<tr>
					<td width="100">特长：</td>
					<td width="180" colspan="5"><input type="text"
						name="staffSkills" size="80" id="staffSkills" value="${user['staffSkills']}"></td>
				</tr>
				<tr>
					<td colspan="6"></td>
				</tr>
				<tr>
					<td align="left" colspan="6" class="tableheader">备注：</td>
				</tr>
				<tr>
					<td colspan="6"><textarea name="note" cols="95" rows="3"
							>${user['note']}</textarea></td>
				</tr>
				<!-- 				<tr> -->
				<!-- 					<td  class="tableheader" colspan="6"><b>&nbsp;附件文档：</b></td> -->
				<!-- 				</tr> -->
				<!-- 				<tr> -->
				<!-- 					<td  colspan="6"></td> -->
				<!-- 				</tr> -->
				<!-- 				<tr height="25"> -->
				<!-- 					<td  >附件选择：</td> -->
				<!-- 					<td  colspan="6"><script> -->
				<!-- 					</script><span id="attachment1_div"></span><span id="attachment1_upload_div" -->
				<!-- 						style="display: none;"></span> -->
				<!-- 						<div id="selfilediv1"></div> <input class="addfile" type="file" -->
				<!-- 							name="attachment1_0" id="attachment1_0" size="1" hidefocus="true" -->
				<!-- 							onchange="addfile();"><input type="hidden" value="" -->
				<!-- 						name="attach_name1"><input type="hidden" value="" -->
				<!-- 						name="attach_dir1"><input type="hidden" value="" -->
				<!-- 						name="disk_id1"></td> -->
				<!-- 				</tr> -->
				<tr align="center" class="tablecontrol">
				<input type="hidden" value="${user['id']}" name="id">
				<input type="hidden" value="${user['deptId']}" name="deptId">
					<td colspan="6"><input type="submit" value="保存"></td>
				</tr>
			</tbody>
		</table>
	</form>
	<script
		src="<%=request.getContextPath()%>/lhgcalendar/lhgcore.js"></script>
	<script
		src="<%=request.getContextPath()%>/lhgcalendar/lhgcalendar.js"></script>
</body>
</html>